package com.yxzx.ebs.service;

import com.yxzx.ebs.entity.EbsSubject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yxzx.ebs.entity.vo.EbsSubjectNestedVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 课程科目 服务类
 * </p>
 *
 * @author kongfuzi
 * @since 2020-07-29
 */
public interface EbsSubjectService extends IService<EbsSubject> {

    public List<String> importSubject(MultipartFile file);

    /**
     * 嵌套树形结构列表数据
     * @return
     */
    List<EbsSubjectNestedVo> nestedList();

    /**
     * 根据id删除分类
     * @param id
     * @return
     */
    boolean deleteSubjectById(String id);

    /**
     * 添加一级分类
     * @param subject
     * @return
     */
    boolean saveLevelOne(EbsSubject subject);

    /**
     * 添加二级分类
     * @param subject
     * @return
     */
    boolean saveLevelTwo(EbsSubject subject);
}
